package edu.hawaii.duedates.mail;

import static org.junit.Assert.fail;
import org.junit.Test; 


/**
 * Some tests to check the Email class.
 * 
 * @author Arthur Shum and Erin Kim
 */
public class TestEmail {

  /**
   * Test that passing an improperly formatted email address throws an exception.
   * 
   * @throws Exception If an error occurs during the test.
   */
  @Test (expected = Exception.class)
  public void testInvalidEmailAddress() throws Exception {
    new Email("asdf", "mail.hawaii.edu", "text");
    fail("Should not get here");
  }
  
}
